package com.prtek.reminder.app;

import android.app.Application;
import com.iflytek.cloud.Setting;
import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;
import com.prtek.reminder.Constant;
import com.prtek.reminder.model.ReminderDaoImpl;
import com.prtek.reminder.model.UserManager;
import com.prtek.reminder.util.FileUtils;
import java.io.File;

/**
 * Created by jarly on 2018/9/7.
 */

public class ReminderApplication extends Application {

  @Override public void onCreate() {
    super.onCreate();
    //IISConfig.servicePackageName="com.konka.yx.face";
    ReminderDaoImpl.getInstance().initialize(this);
    UserManager.init(this);
    final String storagePath = FileUtils.getMountedDirs();
    Setting.setShowLog(false);
  /*  File file = new File(storagePath + "/prtek/asr/iflytekappid.txt");
    final String appid = FileUtils.getAppid(file);*/
    StringBuffer param = new StringBuffer(Constant.APPID_IFLYTEK);
    param.append(",");
    param.append(SpeechConstant.ENGINE_MODE + "=" + SpeechConstant.MODE_MSC);
    SpeechUtility.createUtility(this, param.toString());

  }
}
